package com.serverplic.media;

import java.sql.Date;

/**
 * Represent one Event.
 * @author Antoine
 */
public class Event
{
	private int id;
	private String name;
	private String title;
	private String password;
	private String description;
	private String mapPath;
	private Date startDate;
	private Date endDate;

	public int getId()
	{
		return id;
	}
	
	public void setId(int _id)
	{
		id = _id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String _name)
	{
		name = _name;
	}
	
	public String getTitle()
	{
		return title;
	}
	
	public void setTitle(String _title)
	{
		title = _title;
	}
	
	public String getPassword()
	{
		return password;
	}

	public void setPassword(String _password)
	{
		password = _password;
	}

	public String getDescription()
	{
		return description;
	}
	
	public String getMapPath()
	{
		return mapPath;
	}
	
	public void setMapPath(String _mapPath)
	{
		mapPath = _mapPath;
	}

	public void setDescription(String _description)
	{
		description = _description;
	}
	
	public Date getStartDate()
	{
		return startDate;
	}

	public void setStartDate(Date _startDate)
	{
		startDate = _startDate;
	}

	public Date getEndDate()
	{
		return endDate;
	}

	public void setEndDate(Date _endDate)
	{
		endDate = _endDate;
	}
	
	@Override
	public String toString()
	{
		String txt = "Event\n";
		txt += "ID : " + id + "\n";
		txt += "Name : " + name + "\n";
		txt += "Title : " + title + "\n";
		txt += "Password : " + password + "\n";
		txt += "Map Path : " + mapPath + "\n";
		txt += "Description : " + description + "\n";
		txt += "Start Date : " + startDate + "\n";
		txt += "End Date : " + endDate + "\n";
		return txt;
	}
}
